Ext.define('TS.view.bibleview.Grid' , {
	extend: 'TS.lib.Grid',
	alias : 'widget.bibleviewgrid',
	tbar:Factory.toolbar.search([{
		xtype:'combo',
		store:Dict.book,
		onSelect:function(){
			var c = this.up('toolbar').down('combo[name=chapter_id]');
			c.clearValue();
			Util.s.load(c.getStore(),where('book_id',this.getValue()));
		},
		name:'book_id'
	},{
		xtype:'combo',
		store:Ext.clone(Dict.chapter),
		name:'chapter_id'
	}]),
	frame:false,
	store: 'BibleView',
	columns: [
	 	{xtype: 'rownumberer',hidden:0},{
			header:'Księga',
			hidden:true,
			renderer:Factory.rend.dict(Dict.book),
			dataIndex:'book_id'
		},{
			header:'Rozdział',
			hidden:true,
			renderer:Factory.rend.dict(Dict.chapter),
			dataIndex:'chapter_id'
		},{
			header:'Wers',
			hidden:true,
			dataIndex:'verse_number'
		},{
			header:'Biblia Tysiąclecia',
			renderer:Factory.rend.div,
			dataIndex:'bible_1_text'
		},{
			header:'King James Version',
			renderer:Factory.rend.div,
			dataIndex:'bible_3_text'
		}
	]
});


//697566035